<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 5/26/21
 * Time: 5:36 PM
 */

namespace app\api\validate\store;


use LinCmsTp5\validate\BaseValidate;

class CheckStoreUser extends BaseValidate
{
    protected $rule = [
        'name' => 'require|max:50',
        'phone' => 'require|mobile',
        'remarks' => 'require|max:255',
        'desc' => 'max:255',
        'group_id' => 'isPositiveInteger',
        'type' => 'require|in:1,2,3,4',
        'user_id' => 'isPositiveInteger',
    ];

    protected $message = [
        'name' => '请输入店员姓名且长度不大于50',
        'phone' => '请输入正确的联系电话',
        'remarks' => '请输入备注且最多输入255字符',
        'desc' => '简介长度不大于255',
        'group_id' => '请选择分组',
        'type' => '请选择正确的员工类型',
        'user_id' => '请选择正确的用户'
    ];
}